//
//  AutherTicationCellTableViewCell.m
//  NtoccDriverNew
//
//  Created by 张天兴 on 2025/9/15.
//  Copyright © 2025 GCY. All rights reserved.
//

#import "AutherTicationCellTableViewCell.h"

@implementation AutherTicationCellTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.dianLabel.layer.masksToBounds = YES;
    self.dianLabel.layer.cornerRadius = 5;
    self.upImagView.layer.masksToBounds = YES;
    self.upImagView.layer.cornerRadius = 5;
    self.upDateImagFlaseView.layer.masksToBounds = YES;
    self.upDateImagFlaseView.layer.cornerRadius = 5;
    
    self.lookImagButton.hidden = YES;
    self.upDateImagFlaseView.hidden = YES;
    self.upDateImagSurrcessView.hidden = YES;
    self.bgUpTypeView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.6];
    self.bgUpTypeView.hidden = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)assignmentDic:(NSMutableDictionary *)dic{
    self.typeTitle.text = dic[@"title"];
    if ([NSString stringWithFormat:@"%@",dic[@"imgURL"]].length != 0) {
        [self.upImagView sd_setImageWithURL:[NSURL URLWithString:dic[@"imgURL"]] placeholderImage:[UIImage imageNamed:dic[@"defaultImag"]]];
    }else{
        self.upImagView.image = [UIImage imageNamed:dic[@"defaultImag"]];
    }
    if ([dic[@"upType"] isEqualToString:@"0"]) {
        self.bgUpTypeView.hidden = YES;
        self.upDateImagFlaseView.hidden = YES;
        self.upDateImagSurrcessView.hidden = YES;
    }else if ([dic[@"upType"] isEqualToString:@"1"]){
        self.bgUpTypeView.hidden = NO;
        self.upDateImagFlaseView.hidden = YES;
        self.upDateImagSurrcessView.hidden = NO;
    }else if ([dic[@"upType"] isEqualToString:@"2"]){
        self.bgUpTypeView.hidden = NO;
        self.upDateImagFlaseView.hidden = NO;
        self.upDateImagSurrcessView.hidden = YES;
        self.falseTitleLabel.text = dic[@"falseTitle"];
        self.falseCentenLabel.text = dic[@"falseCentent"];
    }
}
@end
